# 作者：石吴震
# 2024年12月26日21时16分20秒
# 474160957@qq.com

M = 5


def find():
    my_list = [1, 2, 2, 3, 3, 4, 4, 5, 5]
    ruselt = 0
    for i in my_list:
        ruselt = i ^ ruselt
    print(ruselt)


def use_for():
    for i in range(1, 21):
        print(i, end='')


def say_hello(num):
    i = 0
    while i < num:
        print("Hello")
        i += 1


# 文件名：homework1.py
def print_1():
    print("Hello1")


def print_2():
    print("Hello2")


def print_3():
    print("Hello3")


if __name__ == '__main__':
    wd5.print_line()  # 调用函数/


def use_list():
    my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    your_list = [6, 6, 6, 6, 6, 6]
    my_list.insert(0, 0)
    my_list.append(11)
    my_list.extend(your_list)
    my_list[1] = 0
    my_list.remove(0)
    my_list.pop()
    my_list.pop(1)
    l = len(my_list)
    num = my_list.count(6)
    i = my_list.index(9)
    my_list.sort()
    my_list.sort(reverse=True)
    my_list.reverse()

    a = [x for x in range(10)]
    print(a)
    b = []
    for x in range(10):
        b.append(x)
    print(b)

    c = [u for v in range(10) for u in range(v)]
    print(c)

    d = [[n * m for n in range(5)] for m in range(5)]
    print(d)

    e = [q for p in d for q in p]
    print(e)

    f = [k for k in range(10) if k % 2 == 0]
    print(f)

    g = [h if h % 2 == 0 else h ** 2 for h in range(10)]
    print(g)


find()
use_for()
say_hello(M)
use_list()
